﻿<metro:Window x:Class="Settings"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:metro="clr-namespace:Elysium.Theme.Controls;assembly=Elysium.Theme"
              Name="GeoLock"
              Width="800"
              Height="480"
              MinWidth="800"
              MinHeight="480"
              MaxWidth="800"
              MaxHeight="480"
              AllowsTransparency="False"
              IsHitTestVisible="True"
              ResizeMode="NoResize"
              ShowInTaskbar="False"
              SnapsToDevicePixels="True"
              TextOptions.TextFormattingMode="Display"
              TextOptions.TextRenderingMode="ClearType"
              WindowStartupLocation="Manual">

    <Grid>
        <Canvas x:Name="CanvasBorder"
                Width="8"
                Height="37"
                Margin="0,11,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Background="#FF1BA1E2"
                x:FieldModifier="Private" />

        <Label Width="94"
               Height="42"
               Margin="24,6,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="settings"
               FontFamily="Segoe WP"
               FontSize="24"
               FontWeight="Light" />

        <Label x:Name="LabelSoftwareUpdate"
               Width="151"
               Height="29"
               Margin="153,39,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Software updates:"
               FontFamily="Segoe WP"
               FontSize="14"
               FontWeight="Normal" />

        <Button x:Name="ButtonSoftwareUpdate"
                Width="200"
                Height="26"
                Margin="158,103,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                VerticalContentAlignment="Center"
                Content="CHECK FOR UPDATE NOW"
                FontFamily="Segoe WP"
                FontSize="11"
                FontWeight="Bold"
                Foreground="Black"
                OverridesDefaultStyle="True"
                Padding="1"
                x:FieldModifier="Private">

            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="border_update"
                            Background="#FFF7F7F7"
                            BorderBrush="#FFCCCCCC"
                            BorderThickness="1">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="border_update" Property="Background" Value="#FFE0E0E0" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="border_update" Property="Background" Value="#FFD8D8D9" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>

        <TextBox x:Name="TextBoxBingMapKey"
                 Height="25"
                 Margin="158,329,147,0"
                 VerticalAlignment="Top"
                 VerticalContentAlignment="Center"
                 AutoWordSelection="False"
                 Background="#FFEEEEEE"
                 BorderThickness="0"
                 FontFamily="Segoe WP"
                 FontSize="12"
                 FontWeight="Normal"
                 TextAlignment="Left"
                 x:FieldModifier="Private" />

        <Button x:Name="ButtonSaveChanges"
                Width="146"
                Height="25"
                Margin="175,372,437,24"
                HorizontalAlignment="center"
                Content="SAVE CHANGES"
                FontFamily="Segoe WP"
                FontSize="11"
                FontWeight="Bold"
                Foreground="Black"
                Padding="1"
                x:FieldModifier="Private">

            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="border_update"
                            Background="#FFF7F7F7"
                            BorderBrush="#FFCCCCCC"
                            BorderThickness="1">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="border_update" Property="Background" Value="#FFE0E0E0" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="border_update" Property="Background" Value="#FFD8D8D9" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>

        <Button x:Name="ButtonCancelChanges"
                Width="105"
                Height="25"
                Margin="506,372,148,24"
                HorizontalAlignment="center"
                Content="CANCEL"
                FontFamily="Segoe WP"
                FontSize="11"
                FontWeight="Bold"
                Foreground="Black"
                Padding="1"
                x:FieldModifier="Private">
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="border_update"
                            Background="#FFF7F7F7"
                            BorderBrush="#FFCCCCCC"
                            BorderThickness="1">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="border_update" Property="Background" Value="#FFE0E0E0" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="border_update" Property="Background" Value="#FFD8D8D9" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>

        <Label x:Name="LabelBingMapsKey"
               Width="104"
               Height="27"
               Margin="153,303,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               HorizontalContentAlignment="Left"
               Content="Bing Maps Key:"
               FontFamily="Segoe WP"
               FontSize="13"
               FontWeight="SemiBold" />

        <Label x:Name="LabelProxyAdress"
               Width="104"
               Margin="153,198,0,216"
               HorizontalAlignment="Left"
               HorizontalContentAlignment="Left"
               Content="Proxy adress:"
               FontFamily="Segoe WP"
               FontSize="13"
               FontWeight="SemiBold" />

        <TextBox x:Name="TextBoxProxyPort"
                 Width="223"
                 Height="25"
                 Margin="0,224,88,0"
                 HorizontalAlignment="Right"
                 VerticalAlignment="Top"
                 VerticalContentAlignment="Center"
                 Background="#FFEEEEEE"
                 BorderThickness="0"
                 FontFamily="Segoe WP"
                 FontSize="12"
                 FontWeight="Normal"
                 TextAlignment="Left"
                 x:FieldModifier="Private" />

        <Label x:Name="LabelProxyPort"
               Width="104"
               Height="27"
               Margin="0,198,212,0"
               HorizontalAlignment="right"
               VerticalAlignment="Top"
               HorizontalContentAlignment="Left"
               Content="Proxy port:"
               FontFamily="Segoe WP"
               FontSize="13"
               FontWeight="SemiBold" />

        <TextBox x:Name="TextBoxUsername"
                 Height="25"
                 Margin="158,277,377,0"
                 VerticalAlignment="Top"
                 VerticalContentAlignment="Center"
                 Background="#FFEEEEEE"
                 BorderThickness="0"
                 FontFamily="Segoe WP"
                 FontSize="12"
                 FontWeight="Normal"
                 Text=""
                 TextAlignment="Left"
                 x:FieldModifier="Private" />

        <Label x:Name="LabelProxyUsername"
               Width="113"
               Height="27"
               Margin="153,251,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               HorizontalContentAlignment="Left"
               Content="Proxy username:"
               FontFamily="Segoe WP"
               FontSize="13"
               FontWeight="SemiBold" />

        <PasswordBox x:Name="PasswordBox"
                     Width="223"
                     Height="25"
                     Margin="0,277,88,0"
                     HorizontalAlignment="Right"
                     VerticalAlignment="Top"
                     VerticalContentAlignment="Center"
                     Background="#FFEEEEEE"
                     BorderThickness="0"
                     FontFamily="Segoe WP"
                     FontSize="12"
                     FontWeight="Normal"
                     x:FieldModifier="Private" />

        <Label x:Name="LabelProxyPassword"
               Width="118"
               Height="27"
               Margin="0,250,198,0"
               HorizontalAlignment="right"
               VerticalAlignment="Top"
               HorizontalContentAlignment="Left"
               Content="Proxy password:"
               FontFamily="Segoe WP"
               FontSize="13"
               FontWeight="SemiBold" />

        <TextBox x:Name="TextBoxProxyAdress"
                 Height="25"
                 Margin="158,224,377,0"
                 VerticalAlignment="Top"
                 VerticalContentAlignment="Center"
                 Background="#FFEEEEEE"
                 BorderThickness="0"
                 FontFamily="Segoe WP"
                 FontSize="12"
                 FontWeight="Normal"
                 TextAlignment="Left"
                 x:FieldModifier="Private" />

        <CheckBox Name="CheckBoxUpdates"
                  Width="221"
                  Height="26"
                  Margin="153,70,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  VerticalContentAlignment="Top"
                  Content="Automatically check for updates"
                  FontFamily="Segoe WP"
                  FontSize="13"
                  IsChecked="True"
                  x:FieldModifier="Private" />

        <Label Name="LabelOptions"
               Width="188"
               Height="29"
               Margin="153,138,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Connection options:"
               FontFamily="Segoe WP"
               FontSize="14" />

        <CheckBox Name="CheckBoxProxyAuthentication"
                  Width="146"
                  Height="26"
                  Margin="153,170,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  Content="Proxy authentication"
                  FontFamily="Segoe WP"
                  FontSize="13"
                  x:FieldModifier="Private" />

        <CheckBox Name="CheckBoxUseSSL"
                  Width="132"
                  Height="26"
                  Margin="300,170,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  Content="Use HTTPS (SSL)"
                  FontFamily="Segoe WP"
                  FontSize="13"
                  IsChecked="True"
                  x:FieldModifier="Private" />

        <Label Name="Label1"
               Width="209"
               Height="29"
               Margin="0,39,108,0"
               HorizontalAlignment="right"
               VerticalAlignment="Top"
               Background="White"
               Content="GPS hardware options:"
               FontFamily="Segoe WP"
               FontSize="14"
               ForceCursor="False" />

        <CheckBox Name="CheckBoxGpsHardware"
                  Width="301"
                  Height="26"
                  Margin="0,70,15,0"
                  HorizontalAlignment="right"
                  VerticalAlignment="Top"
                  Content="Use GPS hardware (NMEA GPGGA)"
                  FontFamily="Segoe WP"
                  FontSize="13"
                  x:FieldModifier="Private" />

        <ComboBox Name="ComboBoxComPort"
                  Width="160"
                  Height="26"
                  Margin="0,102,70,0"
                  HorizontalAlignment="right"
                  VerticalAlignment="Top"
                  FontFamily="Segoe WP"
                  FontSize="11"
                  x:FieldModifier="Private" />

        <ComboBox Name="ComboBoxSpeed"
                  Width="160"
                  Height="26"
                  Margin="0,138,70,0"
                  HorizontalAlignment="Right"
                  VerticalAlignment="Top"
                  Focusable="True"
                  FontFamily="Segoe WP"
                  FontSize="11"
                  ItemsSource="{Binding}"
                  x:FieldModifier="Private">

            <ComboBox.Items>
                <ComboBoxItem Content="1200" />
                <ComboBoxItem Content="2400" />
                <ComboBoxItem Content="4800" />
                <ComboBoxItem Content="9600" />
                <ComboBoxItem Content="14400" />
                <ComboBoxItem Content="19200" />
                <ComboBoxItem Content="38400" />
                <ComboBoxItem Content="57600" />
            </ComboBox.Items>
        </ComboBox>

        <Label Name="LabelComPort"
               Width="79"
               Height="26"
               Margin="0,103,239,0"
               HorizontalAlignment="right"
               VerticalAlignment="Top"
               VerticalContentAlignment="Top"
               Content="ComPort:"
               FontFamily="Segoe WP"
               FontSize="13" />

        <Label Name="LabelComSpeed"
               Width="78"
               Height="26"
               Margin="0,138,240,0"
               HorizontalAlignment="right"
               VerticalAlignment="Top"
               Content="ComSpeed:"
               FontFamily="Segoe WP"
               FontSize="13" />

        <Button Name="ButtonHardwareDetect"
                Width="146"
                Height="25"
                Margin="339,372,273,24"
                HorizontalAlignment="Center"
                Content="AUTO DETECT"
                FontFamily="Segoe WP"
                FontSize="11"
                FontWeight="Bold"
                ForceCursor="True"
                Foreground="Black"
                Padding="1"
                x:FieldModifier="Private">
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="border_update"
                            Background="#FFF7F7F7"
                            BorderBrush="#FFCCCCCC"
                            BorderThickness="1">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="border_update" Property="Background" Value="#FFE0E0E0" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="border_update" Property="Background" Value="#FFD8D8D9" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>
        <CheckBox Name="CheckBoxHemisphere"
                  Width="301"
                  Height="26"
                  Margin="0,170,15,0"
                  HorizontalAlignment="right"
                  VerticalAlignment="Top"
                  Content="America/US or Australia hemisphere"
                  FontFamily="Segoe WP"
                  FontSize="13"
                  x:FieldModifier="Private" />
    </Grid>
</metro:Window>
